<!doctype html>
<html>

<head>
    <meta charset="utf-8" />
    <title>图片异步上传Demo</title>

    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>

</head>

<body>

<ul>

    <li>
        <label for="bucket">选择图片:</label>

        <!-- 注意：input 的id不能动 -->
        <input id="smm-image-upload-file" name="file" type="file" />
        <input id="smm-image-upload-clientId" type="hidden" name="clientId" value="11111"/>
        <input id="smm-image-upload-btn" type="button" value="提交">
    </li>

</ul>


</body>

<!-- 导入js -->
<script src="smm-image-upload.js"></script>

<!-- 定义回调方法 -->
<script type="text/javascript">
    
    //图片上传回调方法
    function smmImageUploadCallBack(data){

        alert("code:"+data.code+"  data:"+data.data);
    }

</script>

</html>